/*
 * Logger.java
 *
 * Create Date:		2007-3-16
 * Last Update:		2007-3-16
 *
 * Copyright(C) 2007, 上海柴田商务咨询有限公司
 * 
 */
package teatime.core.utils;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import teatime.core.Constants;

/**
 * @author domingo.gu
 * @since 2007-3-16
 * @version 1.0
 */
public final class BusinessLogger {
	private static final BusinessLogger logger = new BusinessLogger();

	private BusinessLogger() {
	}
	
	private Log buzzLog = LogFactory.getLog(Constants.BUSINESS_LOG);

	public static BusinessLogger getLogger() {
		return logger;
	}

	public void info(String info) {
		buzzLog.info(info);
	}

	public void error(String error) {
		buzzLog.error(error);
	}	

	public void error(String error, Throwable e) {
		buzzLog.error(error, e);
	}
	
	public void debug(String debug) {
		buzzLog.debug(debug);
	}	
}
